package com.buaa.daas.constant;

public class StuDailyClockType {
    public enum StuDailyClockTypeEnum{
        STARTTIME_LATER_THAN_ENDTIME(1,"一个时间段内，开始日期要早于结束日期"),
//        STARTTIME_EARLIER_THAN_LAST_ENDTIME(2,"开始日期不允许早于上一个时间段的结束日期"),
//        ENDTIME_LATER_THAN_LAST_STARTIME(3,"结束日期不允许晚于上一个时间段的开始日期"),
        TIME_OVERLAP(4,"预约时间段不能与其他时间段存在重叠");


        private int code;
        private String msg;

        StuDailyClockTypeEnum(int code, String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode(){
            return code;
        }

        public String getMsg(){
            return msg;
        }

    }
}
